import Layout from '@/layout'

export default {
  path: '/employee',
  component: Layout,
  redirect: '/employee/chauffeur',
  name: 'employee',
  meta: { title: '员工管理', icon: 'el-icon-user' },
  children: [
    {
      path: '/employee/chauffeur',
      name: 'chauffeur',
      component: () => import('@/views/employee/chauffeur/index'),
      meta: { title: '司机管理' }
    },
    {
      path: '/employee/chauffeur/driver/:id',
      hidden: true,
      component: () => import('@/views/employee/chauffeur/driver'),
      meta: { title: '查看详情' }
    },
    {
      path: '/employee/deliveryman',
      name: 'deliveryman',
      component: () => import('@/views/employee/deliveryman/index'),
      meta: { title: '快递员管理' }
    },
    {
      path: '/employee/grade',
      name: 'grade',
      component: () => import('@/views/employee/grade/index'),
      meta: { title: '排班管理' }
    },
    {
      path: '/employee/grade/scheduling',
      hidden: true,
      component: () => import('@/views/employee/grade/scheduling'),
      meta: { title: '排班设置' }
    },
    {
      path: 'jobsArea',
      name: 'jobsArea',
      hidden: true,
      component: () => import('@/views/employee/jobs-area/index'),
      meta: { title: '作业范围分配' }
    }
  ]
}

